package com.whub507.msgmanager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whub507.msgmanager.domain.Message;
import com.whub507.msgmanager.domain.Project;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MessageMapper extends BaseMapper<Message> {
    Message selectByProjectIdAndTitle(Integer projectid, String title);

    List<Message> selectAllByKeyWord(String keyWord, Integer projectid);

    Message selectByProjectIdAndNodeAndTitle(Integer projectid, String node, String title);
    List<Message> selectAllByProjectId(Integer projectid);

    List<Message> selectAllByDone(Integer done);
    void deleteByTheId(Integer id);

    Integer updateByTheId(Message message);

    void insertMsg(Message message);

}
